﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="_CadastroProjetos.aspx.cs" Inherits="Bridges.HomeEntidade" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
    #Text1
    {
        width: 128px;
    }
        .style1
        {
            height: 698px;
        }
        .style2
        {
            height: 698px;
            width: 544px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    

        <asp:Panel ID="PanelCadastroProjetos" runat="server" DefaultButton="ButtonCriarProjeto">
            Project Name:
            <br />    
            <asp:TextBox ID="TextBoxNomeProjeto" runat="server" Width="377px"></asp:TextBox>
            <br />
            <br />
            <asp:Button ID="ButtonCriarProjeto" runat="server" Text="Create" 
                onclick="ButtonCriarProjeto_Click" />

    
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Label ID="LabelResult" runat="server"></asp:Label>
    
            Select Project:<br />
            <asp:DropDownList ID="DropDownListProjetos" runat="server" 
                DataSourceID="ObjectDataSourceProjetos" DataTextField="Nomeprojeto" 
                DataValueField="Id" Height="25px" Width="385px" AutoPostBack="True" 
                onselectedindexchanged="DropDownListProjetos_SelectedIndexChanged">
            </asp:DropDownList>
            <asp:ObjectDataSource ID="ObjectDataSourceProjetos" runat="server" 
                SelectMethod="GetByCodEntidade" TypeName="Bridges.BLL.ProjetoBLL">
                <SelectParameters>
                    <asp:SessionParameter DefaultValue="0" Name="codEntidade" 
                        SessionField="ssCdEntidade" Type="Int32" />
                </SelectParameters>
            </asp:ObjectDataSource>
        </asp:Panel>
    
   
        <table>
            <tr>
                <td>
                    <asp:Panel ID="PanelOfertas" runat="server" DefaultButton="ButtonInserirHashtagOfertas">
                        OFFERS<br />
                        Insert HashTags of OFFERS to this project:<br />
                        <asp:TextBox ID="TextBoxHashtagOfertas" runat="server" Width="296px"></asp:TextBox>
                        &nbsp;&nbsp;&nbsp;
                        <asp:Button ID="ButtonInserirHashtagOfertas" runat="server" Text="Insert Tag" 
                            Width="80px" onclick="ButtonInserirHashtagOfertas_Click" />
                        <asp:ListBox ID="ListBoxOfertas" runat="server" Width="410px" 
                                DataSourceID="ObjectDataSourceHashtagsOfertas" DataTextField="TagOferta" 
                                DataValueField="Id" Height="250px"></asp:ListBox>
                            <asp:ObjectDataSource ID="ObjectDataSourceHashtagsOfertas" runat="server" 
                                SelectMethod="GetByCodProjeto" TypeName="Bridges.BLL.OfertaBLL">
                                <SelectParameters>
                                    <asp:ControlParameter ControlID="DropDownListProjetos" DefaultValue="0" 
                                        Name="codProjeto" PropertyName="SelectedValue" Type="Int32" />
                                </SelectParameters>
                            </asp:ObjectDataSource>
                   
                    
                    <br />
                        <asp:Button ID="ButtonRemoveTagOfertas" runat="server" Text="Remove Tag" 
                            Width="122px" onclick="ButtonRemoveTagOfertas_Click" />
                    </asp:Panel>
                </td>

                <td>
                    <asp:Panel ID="PanelDemandas" runat="server" DefaultButton="ButtonInserirHashtagsDemandas">
                        DEMANDS <br />
                        Insert HashTags of DEMANDS to this project:<br />
                        <asp:TextBox ID="TextBoxHashtagDemandas" runat="server" Width="296px"></asp:TextBox>
                        &nbsp;&nbsp;&nbsp;
                        <asp:Button ID="ButtonInserirHashtagsDemandas" runat="server" Text="Insert Tag" 
                            Width="80px" onclick="ButtonInserirHashtagsDemandas_Click" />
                        <asp:ListBox ID="ListBoxDemandas" runat="server" Width="410px" 
                                DataSourceID="ObjectDataSourceHashTagsDemandas" DataTextField="TagDemanda" 
                                DataValueField="Id" Height="250px"></asp:ListBox>
                            <asp:ObjectDataSource ID="ObjectDataSourceHashTagsDemandas" runat="server" 
                                SelectMethod="GetByCodProjeto" TypeName="Bridges.BLL.DemandaBLL">
                                <SelectParameters>
                                    <asp:ControlParameter ControlID="DropDownListProjetos" DefaultValue="0" 
                                        Name="codProjeto" PropertyName="SelectedValue" Type="Int32" />
                                </SelectParameters>
                            </asp:ObjectDataSource>

                        <br />
                            <asp:Button ID="ButtonRemoveTagDemandas" runat="server" Text="Remove Tag" 
                                Width="122px" onclick="ButtonRemoveTagDemandas_Click" />
                        </asp:Panel>
                        </td>
            </tr>
            
        </table>

   
        
</asp:Content>
